package rad.framework.jboss.seam;


public class SeamBootstrap {

	private static boolean started = false;
	
	public static boolean isStarted() {
		return started;
	}

	public static void bootstrap() {
		try {
			if (!started) {
				SeamTestCase.startSeam();
				started = true;
			}
			SeamTestCase.setupClass();
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}

	public static void shutdown() {
		try {
			SeamTestCase.cleanupClass();
//			SeamTestCase.stopSeam();
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}
}
